package com.base.po.voip;

import java.util.ArrayList;
import java.util.List;

public class CategoriesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CategoriesExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("ID like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("ID not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAlicateIsNull() {
            addCriterion("AliCate is null");
            return (Criteria) this;
        }

        public Criteria andAlicateIsNotNull() {
            addCriterion("AliCate is not null");
            return (Criteria) this;
        }

        public Criteria andAlicateEqualTo(String value) {
            addCriterion("AliCate =", value, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateNotEqualTo(String value) {
            addCriterion("AliCate <>", value, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateGreaterThan(String value) {
            addCriterion("AliCate >", value, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateGreaterThanOrEqualTo(String value) {
            addCriterion("AliCate >=", value, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateLessThan(String value) {
            addCriterion("AliCate <", value, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateLessThanOrEqualTo(String value) {
            addCriterion("AliCate <=", value, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateLike(String value) {
            addCriterion("AliCate like", value, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateNotLike(String value) {
            addCriterion("AliCate not like", value, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateIn(List<String> values) {
            addCriterion("AliCate in", values, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateNotIn(List<String> values) {
            addCriterion("AliCate not in", values, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateBetween(String value1, String value2) {
            addCriterion("AliCate between", value1, value2, "alicate");
            return (Criteria) this;
        }

        public Criteria andAlicateNotBetween(String value1, String value2) {
            addCriterion("AliCate not between", value1, value2, "alicate");
            return (Criteria) this;
        }

        public Criteria andCateIsNull() {
            addCriterion("Cate is null");
            return (Criteria) this;
        }

        public Criteria andCateIsNotNull() {
            addCriterion("Cate is not null");
            return (Criteria) this;
        }

        public Criteria andCateEqualTo(String value) {
            addCriterion("Cate =", value, "cate");
            return (Criteria) this;
        }

        public Criteria andCateNotEqualTo(String value) {
            addCriterion("Cate <>", value, "cate");
            return (Criteria) this;
        }

        public Criteria andCateGreaterThan(String value) {
            addCriterion("Cate >", value, "cate");
            return (Criteria) this;
        }

        public Criteria andCateGreaterThanOrEqualTo(String value) {
            addCriterion("Cate >=", value, "cate");
            return (Criteria) this;
        }

        public Criteria andCateLessThan(String value) {
            addCriterion("Cate <", value, "cate");
            return (Criteria) this;
        }

        public Criteria andCateLessThanOrEqualTo(String value) {
            addCriterion("Cate <=", value, "cate");
            return (Criteria) this;
        }

        public Criteria andCateLike(String value) {
            addCriterion("Cate like", value, "cate");
            return (Criteria) this;
        }

        public Criteria andCateNotLike(String value) {
            addCriterion("Cate not like", value, "cate");
            return (Criteria) this;
        }

        public Criteria andCateIn(List<String> values) {
            addCriterion("Cate in", values, "cate");
            return (Criteria) this;
        }

        public Criteria andCateNotIn(List<String> values) {
            addCriterion("Cate not in", values, "cate");
            return (Criteria) this;
        }

        public Criteria andCateBetween(String value1, String value2) {
            addCriterion("Cate between", value1, value2, "cate");
            return (Criteria) this;
        }

        public Criteria andCateNotBetween(String value1, String value2) {
            addCriterion("Cate not between", value1, value2, "cate");
            return (Criteria) this;
        }

        public Criteria andGradeIsNull() {
            addCriterion("Grade is null");
            return (Criteria) this;
        }

        public Criteria andGradeIsNotNull() {
            addCriterion("Grade is not null");
            return (Criteria) this;
        }

        public Criteria andGradeEqualTo(String value) {
            addCriterion("Grade =", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotEqualTo(String value) {
            addCriterion("Grade <>", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeGreaterThan(String value) {
            addCriterion("Grade >", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeGreaterThanOrEqualTo(String value) {
            addCriterion("Grade >=", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLessThan(String value) {
            addCriterion("Grade <", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLessThanOrEqualTo(String value) {
            addCriterion("Grade <=", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLike(String value) {
            addCriterion("Grade like", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotLike(String value) {
            addCriterion("Grade not like", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeIn(List<String> values) {
            addCriterion("Grade in", values, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotIn(List<String> values) {
            addCriterion("Grade not in", values, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeBetween(String value1, String value2) {
            addCriterion("Grade between", value1, value2, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotBetween(String value1, String value2) {
            addCriterion("Grade not between", value1, value2, "grade");
            return (Criteria) this;
        }

        public Criteria andPicIsNull() {
            addCriterion("Pic is null");
            return (Criteria) this;
        }

        public Criteria andPicIsNotNull() {
            addCriterion("Pic is not null");
            return (Criteria) this;
        }

        public Criteria andPicEqualTo(String value) {
            addCriterion("Pic =", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotEqualTo(String value) {
            addCriterion("Pic <>", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicGreaterThan(String value) {
            addCriterion("Pic >", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicGreaterThanOrEqualTo(String value) {
            addCriterion("Pic >=", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLessThan(String value) {
            addCriterion("Pic <", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLessThanOrEqualTo(String value) {
            addCriterion("Pic <=", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicLike(String value) {
            addCriterion("Pic like", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotLike(String value) {
            addCriterion("Pic not like", value, "pic");
            return (Criteria) this;
        }

        public Criteria andPicIn(List<String> values) {
            addCriterion("Pic in", values, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotIn(List<String> values) {
            addCriterion("Pic not in", values, "pic");
            return (Criteria) this;
        }

        public Criteria andPicBetween(String value1, String value2) {
            addCriterion("Pic between", value1, value2, "pic");
            return (Criteria) this;
        }

        public Criteria andPicNotBetween(String value1, String value2) {
            addCriterion("Pic not between", value1, value2, "pic");
            return (Criteria) this;
        }

        public Criteria andDatastatusIsNull() {
            addCriterion("DataStatus is null");
            return (Criteria) this;
        }

        public Criteria andDatastatusIsNotNull() {
            addCriterion("DataStatus is not null");
            return (Criteria) this;
        }

        public Criteria andDatastatusEqualTo(Boolean value) {
            addCriterion("DataStatus =", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotEqualTo(Boolean value) {
            addCriterion("DataStatus <>", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusGreaterThan(Boolean value) {
            addCriterion("DataStatus >", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("DataStatus >=", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusLessThan(Boolean value) {
            addCriterion("DataStatus <", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusLessThanOrEqualTo(Boolean value) {
            addCriterion("DataStatus <=", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusIn(List<Boolean> values) {
            addCriterion("DataStatus in", values, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotIn(List<Boolean> values) {
            addCriterion("DataStatus not in", values, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusBetween(Boolean value1, Boolean value2) {
            addCriterion("DataStatus between", value1, value2, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("DataStatus not between", value1, value2, "datastatus");
            return (Criteria) this;
        }

        public Criteria andIndexpicIsNull() {
            addCriterion("IndexPic is null");
            return (Criteria) this;
        }

        public Criteria andIndexpicIsNotNull() {
            addCriterion("IndexPic is not null");
            return (Criteria) this;
        }

        public Criteria andIndexpicEqualTo(String value) {
            addCriterion("IndexPic =", value, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicNotEqualTo(String value) {
            addCriterion("IndexPic <>", value, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicGreaterThan(String value) {
            addCriterion("IndexPic >", value, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicGreaterThanOrEqualTo(String value) {
            addCriterion("IndexPic >=", value, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicLessThan(String value) {
            addCriterion("IndexPic <", value, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicLessThanOrEqualTo(String value) {
            addCriterion("IndexPic <=", value, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicLike(String value) {
            addCriterion("IndexPic like", value, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicNotLike(String value) {
            addCriterion("IndexPic not like", value, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicIn(List<String> values) {
            addCriterion("IndexPic in", values, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicNotIn(List<String> values) {
            addCriterion("IndexPic not in", values, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicBetween(String value1, String value2) {
            addCriterion("IndexPic between", value1, value2, "indexpic");
            return (Criteria) this;
        }

        public Criteria andIndexpicNotBetween(String value1, String value2) {
            addCriterion("IndexPic not between", value1, value2, "indexpic");
            return (Criteria) this;
        }

        public Criteria andDpicIsNull() {
            addCriterion("DPic is null");
            return (Criteria) this;
        }

        public Criteria andDpicIsNotNull() {
            addCriterion("DPic is not null");
            return (Criteria) this;
        }

        public Criteria andDpicEqualTo(String value) {
            addCriterion("DPic =", value, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicNotEqualTo(String value) {
            addCriterion("DPic <>", value, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicGreaterThan(String value) {
            addCriterion("DPic >", value, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicGreaterThanOrEqualTo(String value) {
            addCriterion("DPic >=", value, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicLessThan(String value) {
            addCriterion("DPic <", value, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicLessThanOrEqualTo(String value) {
            addCriterion("DPic <=", value, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicLike(String value) {
            addCriterion("DPic like", value, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicNotLike(String value) {
            addCriterion("DPic not like", value, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicIn(List<String> values) {
            addCriterion("DPic in", values, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicNotIn(List<String> values) {
            addCriterion("DPic not in", values, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicBetween(String value1, String value2) {
            addCriterion("DPic between", value1, value2, "dpic");
            return (Criteria) this;
        }

        public Criteria andDpicNotBetween(String value1, String value2) {
            addCriterion("DPic not between", value1, value2, "dpic");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}